package fileDemo;

import java.io.*;

public class Demo15 {
    public static void main(String[] args) throws FileNotFoundException {
        try(Writer writer=new FileWriter("D:/Project/java/java-biog/"  +
                               "Day20250312/IO测试文件目录/测试1.txt")){
            BufferedWriter bufferedWriter=new BufferedWriter(writer);
            writer.write("hello world");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
